package com.touch.client;

import com.touch.core.NetConstants;

public class ConnectionChecker implements Runnable
{	
	public void run() 
	{
		while(!ClientControls.CONNECTED)
		{
			try 
			{
				ClientControls.CLIENT_SOCKET.send(NetConstants.REQUEST_CONNECTION);
				Thread.sleep(2000);
			} 
			catch (InterruptedException e) 
			{			
				e.printStackTrace();
			}	
		}	
		ClientControls.CLIENT_SOCKET.send(NetConstants.REQUEST_CLASS_INFO);
	}

}
